/*
 * @Description:
 * @Version:
 * @Author: Troubadour
 * @Date: 2022-09-11 22:21:09
 * @LastEditors: Troubadour 2276791354@qq.com
 * @LastEditTime: 2024-01-14 21:33:15
 */

#ifndef __OLED_H
#define __OLED_H

#include "main.h"


/* 1. Modify Macro Definition */
#define OLED_WIDTH 	     128
#define OLED_HEIGHT 	 64


//OLED控制用函数
void OLED_WR_Byte(unsigned dat,unsigned cmd);
void OLED_Display_On(void);
void OLED_Display_Off(void);
void OLED_Set_Pos(unsigned char x, unsigned char y);
void OLED_Init_GPIO(void);
void OLED_Init(void);
void OLED_Set_Pixel(unsigned char x, unsigned char y,unsigned char color);
void OLED_Display(void);
void OLED_Clear(unsigned dat);
#endif
